Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Bigbank PDF Importer ignoring cent amounts #3891

Merged

Conversation

MonkeySon
Copy link
Contributor

Bigbank uses the Estonian number format in their account statement transactions, namely a comma as decimal separator.

Before, numbers were parsed by the ExtractorUtils with the de_CH country code, which uses a dot as decimal separator. This has the effect that cent amount are ignored, but the test still passed since it did not include cent amounts.

This pull request:

Bigbank uses Estonian number format in their account transactions
statement, namley a comma for decimal separation. Therefore amounts
need to be parsed with the correct language code, and de_CH would
have ignored decimal places.
@MonkeySon MonkeySon changed the title Fix Bigbank PDF import error when parsing cent amounts Fix Bigbank PDF Importer ignoring cent amounts Mar 27, 2024
@Nirus2000 Nirus2000 added the pdf label Mar 28, 2024
@Nirus2000 Nirus2000 merged commit 1143874 into portfolio-performance:master Mar 28, 2024
2 checks passed
@Nirus2000
Copy link
Member

Hello @MonkeySon
Thank you for this pull request.
It shows how important test cases and clean source code are.
Good job! 👍🏻

Rebase... merge...

@MonkeySon MonkeySon deleted the bigbank_pdf_import_fix branch April 1, 2024 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants